package cdn

import (
	"fmt"
	"myproject/internal/container"
	"myproject/internal/service"

	"github.com/aliyun/alibaba-cloud-sdk-go/services/cdn"
)

type Service struct {
	service.BaseService
}

func NewService(container *container.Container) *Service {
	return &Service{
		BaseService: service.NewBaseService(container),
	}
}

func (s *Service) DoSomething() error {
	client := s.Container.GetCDNClient()
	request := cdn.CreateDescribeCdnDomainDetailRequest()
	response, err := client.DescribeCdnDomainDetail(request)
	if err != nil {
		return err
	}
	fmt.Println(response)
	return nil
}
